package com.example.demo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.util.Date;

/**
 * 部门实体类
 */
@Data
@Table("tb_department")
public class Department {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String name;

    @Column("parent_id")
    private Long parentId;

    @Column("create_time")
    private Date createTime;

    @Column("update_time")
    private Date updateTime;
}